/**
 * Contains {@link PassiveElement}
 */
package logic.pathelements;

import logic.connectors.Connector;

/**
 * Passive network element contains network connectors {@link Connector}
 * @author Alexey Akimov <frinatella@gmail.com>
 */
public abstract class PassiveElement extends PathElement {
    
    /**
     * Constructor instances this element id and connectors according to its parameters
     * @param id this element id
     * @param connectorsCount this element connectors count
     */
    public PassiveElement(Integer id, int connectorsCount) {
        super(id, connectorsCount);
        for (int i = 0; i < getConnectorsCount(); ++i) {
            connectors.add(i, new Connector(this));
        }
    }

}
